# -*- coding: utf-8 -*-
# @Time    : 2021/3/18 20:21
# @Author  : 夏思毅
# @Email   : 2739124228@qq.com
# @File    : python作业3.18.py
# @Software: PyCharm


#1
# print("20<x<30"or"x<-100")
#
# #2
# n = int(input("输入任意整数："))
# y = int(2**n-1)
# print(y)


#3
# a = int(10)
# b = int(20)
#
# if {a>0 and b>0 and a!=b}:
#
#  print(a%b+a/b*b==a)

#4
# str1 = '2135asdasdsvdfgdfabc'
# print(str1.find("abc"))

#5
# a = int(127)
# print(a>>2)



# 6
# print(3 or print("5")and not print('abc'))

# 7
# a = int(5)
# b = int(7)
# print(1.0+a/b)

# 8
# x = int (15)
# y = int (19)
# z = int (18)
# print(x<z or y<z)


# 9
# import random
# input("投入弹珠开始游戏")
# a = [1,0,0,1,0,1,0,1,0,1,0,0]
# # i = a.replace(',',"")
# a = random.sample(a,12)
# print("亮灯情况：",a)
# b = random.randint(1,12)
# e = (a[b-1])
# print("击中了第",b,"盏灯")
# if e == "1":
#     print("灯被你打黑啦！")
# else:
#     print("灯本来就是黑的，小辣鸡")



# import random
# a=random.randint(1,12)
# mub="0,1,0,1,1,0,0,0,1,0,1,0"
# mub2=mub.replace(",","")
# mub3=list(mub2)
# random.shuffle(mub3)
# mub4=''.join(mub3)
# print(mub4)
# kk=(mub3[a-1])
# if (int(kk)==1):
#     print("击中了","打中第",a,"盏灯")
#     print("true")
# else:
#     print("没有击中","打中第",a,"盏灯但是不亮")
#     print("false")


import random
input("投入弹珠开始游戏")
# i = a.replace(',',"")
# a = random.choice(10)
a = "0,1"
# b=''.join(a)
s=a.replace(",","")
k=random.randint(1,12)
for i in range(12):
    s+=random.choice(r)

print("亮灯情况：",s)
print("击中了第",k,"盏灯")
if s[k-1] == "1":
    print("灯被你打黑啦！")
else:
    print("灯本来就是黑的，小辣鸡")

# import random
# input("投入弹珠开始游戏")
# # i = a.replace(',',"")
# # a = random.choice(10)
# a = "0,1,0,0,0,0,0,0,0,0,0,1,1,0"
# z=a.replace(",","")
# b=''.join(a)
# k=random.randint(1,12)
# for i in range(12):
#     s=z[k:k-1:]
#
#
#
#
# print("亮灯情况：",a)
# print("击中了第",k,"盏灯")
# if a[random.randint(1,12)-1] == "1":
#     print("灯被你打黑啦！")
# else:
#     print("灯本来就是黑的，小辣鸡")



